package entities;

import java.io.Serializable;
import javax.persistence.*;

import java.math.BigDecimal;

/**
 * The persistent class for the labserviceinfo database table.
 * 
 */
@Entity
@Table(name = "lab_service_info")
public class LabServiceInfo implements Serializable {
	private static final long serialVersionUID = 1L;
	private int idLabServiceInfo;
	private BigDecimal charges;
	private String description;
	private String labSvName;

	public LabServiceInfo() {
	}

	public LabServiceInfo(BigDecimal charges, String description, String labSvName) {
		super();
		this.charges = charges;
		this.description = description;
		this.labSvName = labSvName;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(unique = true, nullable = false)
	public int getIdLabServiceInfo() {
		return this.idLabServiceInfo;
	}

	public void setIdLabServiceInfo(int idLabServiceInfo) {
		this.idLabServiceInfo = idLabServiceInfo;
	}

	@Column(nullable = false, precision = 10)
	public BigDecimal getCharges() {
		return this.charges;
	}

	public void setCharges(BigDecimal charges) {
		this.charges = charges;
	}

	@Column(length = 200)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(nullable = false, length = 100)
	public String getLabSvName() {
		return this.labSvName;
	}

	public void setLabSvName(String labSvName) {
		this.labSvName = labSvName;
	}

	@Override
	public String toString() {
		if (description != null) {
			return this.getClass().getName() + "[ " + idLabServiceInfo + " | " + charges + " | " + description + " | "
					+ labSvName + " ]";
		}
		return this.getClass().getName() + "[ " + idLabServiceInfo + " | " + charges + " | " + labSvName + " ]";

	}

}